package com.go.where.family.service.impl;

import java.util.Date;
import java.util.UUID;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.go.where.family.constants.Constant;
import com.go.where.family.dao.CustomerReportDao;
import com.go.where.family.pojo.CustomerReportInfo;
import com.go.where.family.service.CustomerReportService;

@Service("customerReportService")
public class CustomerReportServiceImpl implements CustomerReportService {

	@Resource(name = "customerReportDao")
	private CustomerReportDao customerReportDao;

	@Override
	public int save(CustomerReportInfo customerInfo) {
		customerInfo.setId(UUID.randomUUID().toString());
		customerInfo.setReportTime(new Date());
		customerInfo.setIsDelete(Constant.IS_NOT_DELETE);
		return customerReportDao.insert(customerInfo);
	}

}
